package com.mycar2w.cloud.service.repository;

import com.mycar2w.cloud.entity.TUser;
import com.umuw.cloud.core.repository.BaseRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * created time 2017/3/31
 *
 * @author ljc
 * @version V1.0
 */
@Repository
public interface TUserRepository extends BaseRepository<TUser>{
    TUser findByGenderId(Byte geenderId);

    TUser findByPhone(String phone);

    TUser findByPhoneAndPassword(String phone, String password);

    List<TUser> findByAddressId(Long addressId);

    TUser findById(Long userId);

    List<TUser> findByEmail(String email);
}
